package com.project.springboot.enumparam;

/**
 * description: 性别枚举
 * @author 朱正磊
 * @date 2024-01-18 13:30:49
 */
public enum GenderIdCodeEnum implements IdCodeBaseEnum {

    MALE(1, "male"),
    FEMALE(2, "female");

    private final Integer id;

    private final String code;

    GenderIdCodeEnum(Integer id, String code) {
        this.id = id;
        this.code = code;
    }

    @Override
    public Integer getId() {
        return id;
    }

    @Override
    public String getCode() {
        return code;
    }

}
